
import sys

from PyQt4.QtGui import *
from PyQt4 import QtCore

from dexen.system.client.ui import main_window
from dexen.system.client import db, ui


#===============================================================================
# Main
#===============================================================================
def main():
    db.clear()
    db.initialize()
    app = QApplication(sys.argv)
    app.setOrganizationName("Nus")
    app.setApplicationName("Dexen")
    window = main_window.GetMainWindow()
    window.show()    
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()
